package com.work.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * @author 绛河
 * @date 2023/5/8
 * @apiNote
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ConfigurationProperties(prefix = "student")
@PropertySource(value = "classpath:student.properties",encoding = "UTF-8")
@Component
public class Student {
    private String name;
    private String stuno;
    private String favorite;
    private Classs classs;
}
